from django.db import models

# Create your models here.



class LearnUser(models.Model):
    student = models.ForeignKey('user.Student', on_delete = models.CASCADE)
    learnuser = models.CharField(max_length = 20)
    learnpswd = models.CharField(max_length = 20)
    def __str__(self):
        return self.learnuser


class Query(models.Model):
    paper_name = models.ForeignKey('user.PaperName', on_delete = models.CASCADE)
    learnuser = models.ForeignKey(LearnUser, on_delete = models.CASCADE)
    query_name = models.CharField(max_length = 20)
    query_score = models.CharField(max_length = 20,default = '暂未批卷')
